package com.wx.mall.goods.controller;

import com.wx.mall.common.vo.goods.CategoryVo;
import com.wx.mall.common.vo.user.DemoVo;
import com.wx.mall.goods.service.DemoService;
import com.wx.mall.goods.service.ICategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@Api(tags = "demo")
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    DemoService demoService;
    @Autowired
    ICategoryService iCategoryService;

    @ApiOperation("测试feign")
    @GetMapping("/test/feign")
    public DemoVo testFeign(Integer id) {
        return demoService.testFeign(id);
    }



}
